﻿<%@ Page Title="UserLst" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UserLst.aspx.cs" Inherits="CarRental.Account.UserLst" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <hgroup class="title">
        <h1>User List</h1>
    </hgroup>
    <fieldset>
        <legend>User List Form</legend>
        <ol>
            <li>
                <asp:Label ID="lblUserType" runat="server" AssociatedControlID="ddlUserType">User Type</asp:Label>
                <asp:DropDownList ID="ddlUserType" runat="server" Width="200px" Height="25px"></asp:DropDownList>
            </li>
            <li>
                <asp:Button ID="btnSearch" runat="server" Text="Search" Height="40px" OnClick="btnSearch_Click" Width="200px" />
            </li>
            <li>
                <asp:GridView ID="gvUser" runat="server" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="EntityDataSource" >
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                        <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" SortExpression="id" />
                        <asp:BoundField DataField="login_name" HeaderText="login_name" SortExpression="login_name" />
                        <asp:BoundField DataField="password" HeaderText="password" SortExpression="password" />
                        <asp:BoundField DataField="user_type" HeaderText="user_type" SortExpression="user_type" />
                        <asp:BoundField DataField="user_name" HeaderText="user_name" SortExpression="user_name" />
                        <asp:BoundField DataField="address" HeaderText="address" SortExpression="address" />
                        <asp:BoundField DataField="contact_no" HeaderText="contact_no" SortExpression="contact_no" />
                        <asp:BoundField DataField="remarks" HeaderText="remarks" SortExpression="remarks" />
                        <asp:BoundField DataField="status" HeaderText="status" SortExpression="status" />
                        <asp:BoundField DataField="email" HeaderText="email" SortExpression="email" />
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
                <asp:EntityDataSource ID="EntityDataSource" runat="server" ConnectionString="name=CarRentalEntities" DefaultContainerName="CarRentalEntities" EnableDelete="True" EnableFlattening="False" EnableUpdate="True" EntitySetName="user" EntityTypeFilter="user" Where="" >
                </asp:EntityDataSource>
            </li>
        </ol>
        <%--<asp:Button runat="server" ID="btnAddCar" Text="Add Car" OnClick="btnAddCar_Click" />--%>
    </fieldset>
</asp:Content>
